package com.kcht.rfid.rd30.secretary.core.response;


import com.kcht.rfid.rd30.secretary.core.common.RawTagBank;

/**
 * 读操作响应
 * */
public class ReadResponse extends BasicResponse {
    private RawTagBank bank;	//区域
    private int offset;		//偏移
    private int length;		//长度
    //读取默认返回值为空字符串，即如果读取失败返回空字符串
    private String value=""; //值是多少

    public RawTagBank getBank() {
        return bank;
    }

    public void setBank(RawTagBank bank) {
        this.bank = bank;
    }

    public int getOffset() {
        return offset;
    }

    public void setOffset(int offset) {
        this.offset = offset;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "ReadResponse{" +
                "bank=" + bank +
                ", offset=" + offset +
                ", length=" + length +
                ", value='" + value + '\'' +
                "} " + super.toString();
    }
}
